<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>P17 1.3.6对象</title>
</head>

<body>
    <script>
        var stu = {};
        stu.name = '小明';
        stu.gendar = '男';
        stu.age = 18;
        alert(stu.name);
        stu.introduce = function () {
            return '我叫' + this.name + '，今年' + this.age + '岁。';
        }
        alert(stu.introduce());
    </script>
    <a href="../首页/page01.html">
        <h2>返回上一页面</h2>
    </a>
</body>

</html>